Thermal optimality of net ecosystem exchange of carbon dioxide and underlying mechanisms.