Monte Carlo simulation to evaluate the contamination in an energy modulated carbon ion beam for hadron therapy delivered by cyclotron