Granular media as rate-independent simple materials: Constitutive relations