Dosimetry in the vicinity of high-density materials in radiotherapy