Exploiting robot redundancy in collision detection and reaction