Realistic Posture Estimation and Balance Control of Articulated Figures Using Dynamic and Kinematic Constraints