The formation of a border town Trieste in the eighteenth century