Colonel Sir Thomas Valiant, KCB, KH, Commander of the 82nd Foot (1825–1827) and the 40th Foot (1827–1839)