Unified preview control for humanoid postural stability and upper-limb interaction adaptation