Design and control of a robotic payload stabilization mechanism for rocket flights