CONTROL ANALYSIS AND OPTIMIZATION OF HYBRID PV DIESEL BATTERY SYSTEMS