CRASH3: Cosmological radiative transfer through metals