Tipu Sultan, Mysore, Nawab