Synthesis of magnetite nanorods and porous hematite nanorods