Necessary and sufficient conditions for the strong local minimality of C1 extremals on a class of non-smooth domains