Paraelectric and ferroelectric phases of betaine phosphite: structural, thermodynamic, and dielectric properties