Double-layered intelligent energy management for optimal integration of plug-in electric vehicles into distribution systems. (1st January 2019)