Optimal Management for Megawatt Level Electric Vehicle Charging Stations With a Grid Interface Based on Modular Multilevel Converter