A Monte Carlo computer program for the transport of energetic ions in amorphous targets