Temperature and pressure-induced phase transitions in ice