Granular soils: from DEM simulation to constitutive modeling