Fundamentals of membrane top-layer synthesis and processing