Analysis of spectral densities using modified moments