Stability of Cu–Nb layered nanocomposite from chemical bonding