A nonlocal Korn-type characterization of Sobolev vector fields