Control of a haptic device for virtual prototyping of power window switches