Force control of flexible manipulators with discontinuous contact and joint friction