A modified CAS-CI approach for an efficient calculation of magnetic exchange coupling constants