Torque Controlled Locomotion of a Biped Robot with Link Flexibility