Hydrological and geological controls for the joint evolution of dissolved oxygen and iron in crystalline rocks