Template-assisted fabrication of macroporous NiFe2O4 films with tunable microstructural, magnetic and interfacial properties