Nuclear deorientation for heavy ions recoiling in vacuum and low pressure gas