Correlation between Volatility of Rare-Earth Metals and Encapsulation of Their Carbides in Carbon Nanocapsules