Chemistry and phase transitions from hypervelocity impacts