Diverse lanthanide coordination polymers tuned by the flexibility of ligands and the lanthanide contraction effect: syntheses, structures and luminescence.