Potato-Onion Gratin