Optimization and simulation on key parameters of foot trajectory for a hydraulic quadruped robot