Scalloped Potatoes with Caramelised Onions and Gruyere