Decay channels of core excitation resonances in 3d and 4f metal atoms