magma rises towards the surface of the earth because of its?​