Bifunctional metal–organic frameworks toward photocatalytic CO2 reduction by post-synthetic ligand exchange