Spin ice under uniaxial pressure and magnetic frustration in garnets