The role of the subducting slab and melt crystallization in the formation of magnetite-(apatite) systems, Coastal Cordillera of Chile