Optimal control theory for applications in Magnetic Resonance Imaging (Pacific Journal of Mathematics for Industry, 2017)