Interstitial carbon molecules, metal-metal bonds, and chemical binding in Gd10C4Cl18