Nanoalloys: from theory to applications of alloy clusters and nanoparticles