Control of thermal gradient using thermoelectric coolers for study of thermal effects