Energy Management In Microgrids For Electricity Access