Origins and lifetimes of secular and tidal bars in simulated disc galaxies | Synapse