Computing Motion Plans for Assembling Particles with Global Control