Configuration interaction in the continuum states of molecules