which of the following is a factor that determines the composition of magma