Hydrothermal synthesis and self-assembly of magnetite (Fe3O4) nanoparticles with the magnetic and electrochemical properties