Structural study of calcium phosphonates: a combined synchrotron powder diffraction, solid-state NMR and first-principle calculations approach