Biogeography of bacterial communities exposed to progressive long-term environmental change