Direct calculation of excitation energies by the coupled‐cluster method: Mg and Ar atoms