The CASSCF state interaction method