Gian Francesco II Brignole, Doge Genova