Energy-driven asymmetric partitioning of a semiflexible polymer between interconnected cavities.