Sir William Erskine, 2nd Baronet - British Army general