Controlled emulsification using microporous membranes