Weighted Monte Carlo approach to electron transport in semiconductors