The TransActinide Separator and Chemistry Apparatus (TASCA) at GSI Optimization of ion-optical structures and magnet designs