Modeling Gait Transitions of Quadrupeds and Their Generalization with CMAC Neural Networks