Online Reinforcement Learning Control Of An Electromagnetic Manipulator