Determination of the effective sample thickness via radiative capture