Stability improvement of a dynamic walking system via reversible switching surfaces