Semilinear elliptic equations in unbounded domains of R^n