Building models of spectroscopy for condensed phase systems with atomistic detail using theory and machine learning