Nuclear quantum effects in the phase transitions of hydrogen-bonded systems