Ab initio calculations on (MgO)n, (CaO)n, and (NaCl)n clusters (n=1–6)