Bernucci Valieri, Doge of Venice