Dissociation energies of BaI and CaI from equilibrium studies