How long did the Marwar resist Islamic invasions