Perinatal factors associated with retinopathy of prematurity