Four-component relativistic configuration-interaction calculation using the reduced frozen-core approximation