Instrumental variable estimation for duration data