A weighing procedure for thickness determination of thin nuclear targets