Optimizing ion beam transport at the TITAN experiment using simulation, for the installation of a new linear Paul trap