Controller design for haptic systems under delayed position and velocity feedback