Explain why $\mathrm{BaCO}_{3}$ is soluble in aqueous $\mathrm{HCl}$, but $\mathrm{BaSO}_{4}$, which is used to make the intestines visible in X-ray photographs, remains sufficiently insoluble in the $\mathrm{HCl}$ in a human stomach so that poisonous barium ions do not get into the bloodstream.