Microfiltration using a dynamically formed membrane