From hydrated Ni3(OH)2(C8H4O4)2(H2O)4 to anhydrous Ni2(OH)2(C8H4O4): impact of structural transformations on magnetic properties.