Energy in agriculture under climate change