Performance optimization of a chitosan/anammox reactor in nitrogen removal from synthetic wastewater