Stabilization method with the relativistic configuration-interaction calculation applied to two-electron resonances