who was the king of ancient troy during the trojan war?