Elliptic equations with vertical asymptotes in the nonlinear term