Spectral estimation from simulations via sketching