Biorefinery of microalgae biomass cultivated in wastewaters