Calculation of the energy deposition in the targets from C to U irradiated with intermediate energy protons