Root Vegetable Gratin with Onion