How pH affects nutrient uptake