Adaptive Reconfiguration of a Modular Robot through Heterogeneous Inter-Module Connections