Self-similar solutions for spreading of non-Newtonian gravity currents in a porous layer