Pair transfer spectral function at finite temperature in nanometer-scale superconducting grains