Influence of thin polysilicon layers on the performance of thermopiles