A Measurement System for Hand Rehabilitation