Bonding Character of Inner-Shell Orbitals in Diatomic Molecules