Wearable systems for e-health: Telemonitoring and telerehabilitation