Microalgae-mediated chemicals production and wastes removal