Multiple chaotic central pattern generators with learning for legged locomotion and malfunction compensation