Small‐scale environmental heterogeneity and the analysis of species distributions along gradients