Molecular simulation of nucleation and dissolution of alkali halides