There were several other kingdoms which ruled over parts of India in the later medieval period prior to the British occupation. What groups was Mysore fighting in the later half of the 18th century