When trees get too hot, energy production in their leaves breaks down