Passage of a shock wave through inhomogeneous media and its impact on gas-bubble deformation.