Tipu Sultan's search for legitimacy : Islam and kingship in a Hindu domain