Sensor-coupled fractal gene regulatory networks for locomotion control of a modular snake robot