A necessary condition for Sobolev extension domains in higher dimensions