Determining the equilibrium structures of nanoalloys by computational methods