Discrete-time modeling and control of robotic manipulators