Unobtrusive Pain Monitoring in Older Adults With Dementia Using Pairwise and Contrastive Training