Interconvertable modular framework and layered lanthanide(III)-etidronic acid coordination polymers.