Matrices of Spin-Orbit Interaction in the Electron Configurations np2 n′ p and np4 n′ p