Discriminant loci of ample and spanned line bundles