Structural evolution of cuboidal granular media