Least energy solutions for elliptic equations in unbounded domains