Resource heterogeneity structures aquatic bacterial communities