Self-Organizing Map With Time-Varying Structure to Plan and Control Artificial Locomotion