Fe3O4 nanomaterials: synthesis, optical and electrochemical properties