Conditions for optical parametric oscillation with a structured light pump