Cosimo III de' Medici, Grand Duke o Tuscany