Gaussian maps and generic vanishing I: Subvarieties of abelian varieties