A multi-sensor multi-rate algorithm for motor rehabilitation with Augmented Reality devices