Shear Band Formation in Granular Media as a Variational Problem | Synapse