Integrating plug-in electric vehicles into the electric power system