Self-assembly, bifunctional electrocatalytic behavior, and photocatalytic property of host–guest metal-oxide-based coordination polymers