Recovery and applications of ammoniacal nitrogen from nitrogen-loaded residual streams