Intracellular and extracellular protective mechanisms of the anammox consortia against exogenous sulfadimidine.