Federer marks No.1 ranking with 98th title in Stuttgart