Structural chemistry of complex carbides and related compounds