Beatty, William, 1773-1842