Monte Carlo simulation of the transport of fast electrons and positrons in solids