Optical constants of ice in the infrared