Thermally Induced Electromechanical Fields in Unimorphs of Piezoelectric Dielectrics and Nonpiezoelectric Semiconductors