The generalized active space concept for the relativistic treatment of electron correlation. I. Kramers-restricted two-component configuration interaction