Proton magnetic resonance spectroscopy as a technique for measuring the maturity of petroleum