Intentional polarity conversion of AlN epitaxial layers by oxygen