Self-assembly of ammonium assimilation microbiomes regulated by COD/N ratio