Developing a telemonitoring system for stroke rehabilitation