Layered Metal Phosphates and Their Intercalation Chemistry