Magnetic Phase Transitions In Artificial Spin Ice