Microalgae cultivation in view of resource and energy recovery