Optimization of a bio-inspired locomotion controller for a small quadruped robot