Text this: Optimal control theory for applications in Magnetic Resonance Imaging