Energy loss and ion ranges in solids