The generation of magmas in island arcs