Force control of a flexible manipulator based on the measurement of link deflections