Spectral response of solar-cell structures