Coordination polymers from a highly flexible alkyldiamine-derived ligand: structure, magnetism and gas adsorption studies.