Use of Microalgae for Advanced Wastewater Treatment and Sustainable Bioenergy Generation