Realizing sustainable EV charging through grid synchronization and situational awareness