Disentangling the effects of ecology and life history on ectothermic temperature-size responses