Relative permeability and capillary pressure functions of porous media as related to the displacement growth pattern