Dimensionality crossovers in the magnetization of the canted antiferromagnets NH4MnPO4.H2O and ND4MnPO4.D2O