Origin of extraordinary stability of square-planar carbon atoms in surface carbides of cobalt and nickel.