Pio, Carlo, active 1650-1688, Cardinal