Microstructural formulation of stress dilatancy