Mesoporous iron oxide nanowires: synthesis, magnetic and photocatalytic properties