Projective structures and neighborhoods of rational curves