Application of microalgae in wastewater treatment