Heterotrophic denitrification potential as an adaptive response in groundwater bacteria