Minimizing the Maximum Distance Traveled to Form Patterns with Systems of Mobile Robots