Atomistic simulations to model defect formation, diffusion, and ordering in Cu(In,Ga)Se2 and Cd(Se,Te) alloys