Adaptive regulation of assistance 'as needed' in robot-assisted motor skill learning and neuro-rehabilitation