Near-minimum-time control of a manipulator with flexible links.