Soil texture and environmental conditions influence the biogeochemical responses of soils to drought and flooding