Optimization of process performance in a granule-based anaerobic ammonium oxidation (anammox) upflow anaerobic sludge blanket (UASB) reactor.