Derivatized lamellar phosphates and phosphonates of M(IV) ions