Optimisation of Renewable Energy Microgrid Systems For Developing Countries