Quantitative analysis using NMR