Optimisation of biomass waste to energy conversion systems for rural grid-connected applications