A New Dynamic Energy Stability Margin for Walking Machines