Whole-Body Control and Estimation of Humanoid Robots with Link Flexibility