OPTIMAL MODELING AND ANALYSIS OF MICROGRID LITHIUM IRON PHOSPHATE