Microalgae derived biomass and bioenergy production enhancement through biogas purification and wastewater treatment