The formation of compound layers in silicon by ion beam synthesis