Covalent-to-ionic transition in liquid zinc dichloride