Rehabilitation Exercise Quality Assessment through Supervised Contrastive Learning with Hard and Soft Negatives