Spectral functions in mathematics and physics