PLANNING AND OPTIMIZATION OF MICROGRID FOR RURAL ELECTRIFICATION WITH