Thesis Title: Primary and Secondary Frequency Control in Power Systems using Electric Vehicles Taking into Account The Response of Smart Appliances Grade Msc