The resonant structure of Jupiter's Trojan asteroids - II. What happens for different configurations of the planetary system