Compton, Thomas Abingdon, 1820-1862, East India Company servant