Whisk together all spices in a small bowl until combined. Brush onions with oil on both sides. Rub 1 side of each onion with some of the spice mixture and place rub side down on the grill. Grill until golden brown and a crust has formed. Turn the onions over and continue grilling until just cooked through.