Nature of the transformations of ice i and low-density amorphous ice to high-density amorphous ice