The fabrication of nanoporous template thin films for supercritical fluid electrodeposition