Quantitative molecular spectroscopy using Coulomb explosions