Determination of deep donor binding energies from their g values