Competition among chemolithotrophic bacteria under aerobic and anaerobic conditions