New Layered Metal Phosphonates Based on Functionalized Phosphonic Acids