Crystalline metal phosphates with layered structures: Synthesis, luminescence, and proton conduction