Synthesis and structural characterization of layered calcium and lanthanide phosphonate salts