Depth distribution of energy deposition by ion bombardment