Agile Tripedal Locomotion for Damaged Quadruped Robots