Spectral densities from the lattice