A Comparison of Ionic and Molecular Compounds