Temperature dependence of the size effect in thin chromium and tin films