Discrete-time velocity control of redundant robots with acceleration/torque optimization properties