Theory of reflectance and emittance spectroscopy