Chemical bonding at the Si-metal interface: Si-Ni and Si-Cr