Motion-Based User Identification across XR and Metaverse Applications by Deep Classification and Similarity Learning