Haptic emulation of hard surfaces with applications to orthopaedic surgery