A phase-field study on polymerization-induced phase separation occasioned by diffusion and capillary flow—a mechanism for the formation of porous microstructures in membranes