Determination of the Isotopic Compositions of Samarium and Gadolinium by Thermal Ionization Mass Spectrometry