Integration of EVs and DGs into the Electric Power System for Grid Modernization