Detector solenoid compensation in the EIC electron storage ring