Solving the nanostructure problem: exemplified on metallic alloy nanoparticles.