Synthesis of poly(thiazole-2,4-diyl)-rare-earth complexes and their magnetic properties