Synthesis Of Novel Porous Nanostructures Via Template-Directed Methods And Applications In Photovoltaics