An improved experimental setup based on programmable electronics to determine the transport coefficients of semiconductors