Intelligent Energy Management of Plug-In Electric Vehicles with Environment and Traffic Awareness