The dynamics of structural transitions in sodium chloride clusters