Bombardment of substrates by reactive ion beams