A constitutive framework for the elastoplastic modelling of geomaterials