Monte Carlo studies of the interaction of relativistic ions with nuclear emulsion