Transformable Modular Robots: A CPG-Based Approach to Independent and Collective Locomotion