Analytical and numerical investigations of Gas and Water-alternating-gas displacement processes in stratified porous media