Redundancy resolution based on manipulability and dexterity measures with application to REDIESTRO