Synthesis of cyclic and acyclic lipophilic complexing agents for metal ions