Freezing of a modulated liquid: the superionic-to-normal transition of strontium chloride