On the mechanisms of target modification by ion beams and laser pulses