Investigation of the dosimetric impact of a Ni-Ti fiducial marker in carbon ion and proton beams