The minimum time function for the controlled Moreau's sweeping process