Monte Carlo simulation of electronic energy loss for proton impact on nucleobases