Solute segregation and precipitation under heavy-ion bombardment