Decentralized Control Rule Underlying Morphology-dependent Undulatory Locomotion