DESIGN AND OPTIMIZATION OF A 500 KW PHOTOVOLTAIC SYSTEM FOR