Bottom-up field-directed self-assembly of magnetic nanoparticles into ordered nano- and macrostructures