Hardware-in-the-Loop Simulation of Controlled and Uncontrolled EV Charging in a Distribution Grid