Propagation of strong converging shock waves in a gas of variable density