A ternary mechanism for the facilitated transfer of metal ions onto metal–organic frameworks: implications for the ‘‘versatility’’ of these materials as solid sorbents