Clegg, Samuel, 1781-1861