describe how thermal regulation is different in ectotherms and endotherms