Chemical bonding at surfaces and interfaces