Implicit integration of a generalized plasticity constitutive model for partially saturated soil