On globally generated vector bundles on projective spaces Flattenings of projective curves, singularities of Schubert stratifications of Grassmannians and flag varieties, and bifurcations of Weierstrass points of algebraic curves 