Potato Cake with Cheese and Ham