Optimization of struvite precipitation in synthetic biologically