Compositional layering in Io driven by magmatic segregation and volcanism