Role of viscous dissipation in the dynamics of lava flows with power-law rheology