Sir John Hamilton, 1st Baronet, of Woodbrook - Irish officer of the British East India Company and British Army