On the essential self-adjointness of sub-Laplacians