On the interaction of interplanetary shock waves with cometary atmospheres