Theoretical and computational methods for nanoalloy structure and thermodynamics