Universally and existentially definable subsets of global fields