which king made mysore as a model state