Structural properties of ice in confinement