How did the British establish control over India in the early nineteenth century? How did the Sepoy Rebellion contribute to this process?