Micromechanics of vortices in granular media: connection to shear bands and implications for continuum modelling of failure in geomaterials