Stable Flexible-Joint Floating-Base Robot Balancing and Locomotion via Variable Impedance Control