Topological Control of Dual Protonic–Electronic Conduction in Metal–Organic Frameworks