A Dynamic ID Assignment Approach for Modular Robots