Comparison of the spectroscopic properties of polymeric and dimeric lanthanide carboxylates (Pr, Eu)