The complete active space SCF (CASSCF) method in a Newton–Raphson formulation with application to the HNO molecule