Elliptic regularity and essential self-adjointness of Dirichlet operators on $\mathbb {R}^n$