Viscoelastic analysis of cavity propagation in gel with electrical discharge