Atomistic modeling of lattice relaxation in metallic nanocrystals