Group theoretical description of two‐electron wave functions in systems with subgroups of symmetry