Diapiric ascent of magmas through power law crust and mantle