Roasted Duck Legs with Apples and Onions