Receding horizon viability radius for stability of humanoid robot under external perturbation