A procedure for determining the absorbed dose in a substance exposed to pulsed heavy ion beams