Robot-assisted rehabilitation of hand function