Thermoelectric effect in molecular electronics