Predicting the sources of an outbreak with a spectral technique