Structural evolution of granular systems: theory