Quantum effects on phase transitions in high-pressure ice