Continuous Gradient Nanoporous Film Enabled by Delayed Directional Diffusion of Solvent and Selective Swelling.