Energy Management and Smart Charging of PEVs in Isolated Microgrids