Melt evolution above a spontaneously retreating subducting slab in a three-dimensional model