Formation of NaCl from its elements