Resistive toroidal stability of internal kink modes in circular and shaped tokamaks | Synapse