Tomato, Zucchini and Eggplant Gratin