Grilled Beer Brats with Caramelized Onions