Multicomponent self-sorting of a Pd7 molecular boat and its use in catalytic Knoevenagel condensation.