Quantitative MRI by nonlinear inversion of the Bloch equations