Ferroelectricity in lead monohydrogen phosphate, PbHPO4, and the deuterated form, PbDPO4