Theoretical study of transitions involving three rydberg series in two‐valence electron systems: MgI and its electronic sequence