The career of Francesco Avarna from the Spanish domination to the Austrian empire