Inorganic Macroporous Films from Preformed Nanoparticles and Membrane Templates: Synthesis and Investigation of Photocatalytic and Photoelectrochemical Properties