Chemically synthesized Au–Fe3O4 nanostructures with controlled optical and magnetic properties