A smart virtual glove for the hand telerehabilitation