Distributed Formation Building with Obstacle Avoidance for a Team of Wheeled Mobile Robots