Simultaneous improvements on nutrient and Mg recoveries of microalgal bioremediation for municipal wastewater and nickel laterite ore wastewater.