Analysis about the stability of walking based on ZMP theory through a simulation