Determination of mean ionization potential using magnetic resonance imaging for the reduction of proton beam range uncertainties: theory and application. (27th October 2017)