Curvature of vector bundles associated to holomorphic fibrations