Micromechanics of dilatancy and critical state in granular matter