Optimization of chemical ordering in AgAu nanoalloys