Anions make the difference: conversion from zero- to one-dimensional structures and luminescent properties of lanthanide-based complexes