Tomato and Carmelized Onion Tart with Ricotta and Gruyere