New 3D Lanthanide Phosphonates: Syntheses, Crystal Structure, Thermal Stability, Luminescence, and Magnetism