Extension of Gaussian‐2 (G2) theory to bromine‐ and iodine‐containing molecules: Use of effective core potentials