Soft in the middle and crunchy on top, this comforting breakfast dish is part strata and part pudding. The ham lends an alluring smoky taste, while the Gruyère, an excellent melting cheese, adds a slightly nutty note.