Micromechanics of shear bands in granular media