Thick and homogeneous surface layers obtained by reactive ion-beam-enhanced deposition