Development of an integrated haptic system for simulating upper gastrointestinal endoscopy