Study of structures and thermodynamics of CuNi nanoalloys using a new DFT-fitted atomistic potential