Optimal control of hybrid optomechanical systems for generating non-classical states of mechanical motion