Structural optimization and segregation behavior of quaternary alloy nanoparticles based on simulated annealing algorithm