Comprehensive study of the templating effect on the ZnO nanostructure formation within porous hard membranes