Potato Tart with Gruyere, Bacon, and Rosemary