Curvature conditions for immersions of submanifolds and applications