Competition for inorganic substrates among chemoorganotrophic and chemolithotrophic bacteria