Regulation of plant light harvesting by thermal dissipation of excess energy