Building Patterned Structures with Robot Swarms