War, culture, and society in early modern South Asia, 1740-1849