On the correlation between nanoscale structure and magnetic properties in ordered mesoporous cobalt ferrite (CoFe2O4) thin films.