Influence of complex phonon spectra on intersubband optical gain