Contarini, Gaspare, Venetian ambassador