Metal–oxide films with magnetically-modulated nanoporous architectures