On the control of microenvironment shape of functionalized network polymers prepared by template polymerization