Functionalized phosphonates as building units for multi-dimensional homo- and heterometallic 3d-4f inorganic-organic hybrid-materials.