Analytical Study of Miniature Thermoelectric Device