Shock waves in plasmas containing variable‐charge impurities