RIA : developing reflexes for robots : recovery from mechanical errors