Template synthesis of nanoscale materials using the membrane porosity