Sparcs: combining radiation hydrodynamics with non-equilibrium metal chemistry in the Swift astrophysical code