Microalgal growth coupled with wastewater treatment in open and closed systems for advanced biofuel generation