Effect of variable permeability on the propagation of thin gravity currents in porous media