Phase-field study of grain growth in porous polycrystals