Ecosystems Contributions of microenvironmental variation to population persistence under climate change