A model for ceramic membrane formation by dip-coating