Trust in haptic assistance: weighting visual and haptic cues based on error history