which chemical composition affects the viscosity of magma​