Transient metal-centered states mediate isomerization of a photochromic ruthenium-sulfoxide complex