Absorption and emission spectra of a Schwarzschild black hole