Hysteresis Modeling of Capillary Pressure and Relative Permeability by using the Theory of Plasticity