Elmes, James, 1786-1862