Constrained Motion Planning for a Robotic Endoscope Holder based on Hierarchical Quadratic Programming