Particle robotics based on statistical mechanics of loosely coupled components