Effects of fabrication conditions on the microstructures and performances of smart gating membranes with in situ assembled nanogels as gates