A General Model for Food Cooking Undergoing Phase Changes