Comet nuclei and Trojan asteroids: A new link and a possible mechanism for comet splittings