Coordination polymers and complexes for selective anion and cation separation, guest inclusion, catalysis and metallogelation: a crystal engineering approach