Links between thermoregulation and aging in endotherms and ectotherms