Thomas Gates (1776-1851)