what treaty  allowed the Eic in to the then kingdom of nepal