Pasta with potatoes, tomatoes and rosemary