A rationally designed dual role anode material for lithium-ion and sodium-ion batteries: case study of eco-friendly Fe3O4.