Singlet‐to‐triplet energy transfer via 1Π1/3Σ+1 curve crossings in group 2 and 12 metal–atom/rare‐gas systems