On the tropical Torelli map