Synthesis, structures and properties of nickel(II) and cobalt(II) metal–organic frameworks based on a flexible tricarboxylate ligand H3TTG and different pyridyl-containing ligands