Pade approximants and the calculation of spectral functions of solids