Controllable preparation of iron nanostructures and their magnetic properties