A fresh gratin that showcases the very best of summer tomatoes