Shock waves in deformable dielectrics with polarization gradients