Temperature-Induced Structural Transformations of Lanthanide Coordination Polymers Based on a Semirigid Tricarboxylic Acid Ligand: Crystal Structures and Luminescence Properties