Transfer of Reinforcement Learning-Based Controllers from Model- to Hardware-in-the-Loop