what is the magma that flows to earth surface called?