Integrated anaerobic and algal bioreactors