Measurement of Seebeck coefficient using a light pulse