Interactions among bacteria metabolizing inorganic nitrogen compounds