Monte Carlo simulation of backscattered electrons and energy from thick targets and surface films