Spin-orbit coupling constants from semi-empirical wavefunctions