Lattice optimization of Si-Cu interfaces on the atomic scale