Effects of electron beam during ion implantation and ion beam assisted deposition