Heterogeneity of functional groups in a metal–organic framework displays magic number ratios