Lifetime measurements in 17N using the recoil-distance technique