Magnetic and conductive Fe3O4–polyaniline nanoparticles with core–shell structure