Configuration mixing in the continuum and nuclear reactions.-I