Planning and Operation of Plug-In Electric Vehicles