Loop size optimization induces a strong thermal stabilization of the thioredoxin fold