Wearable technology for rehabilitation