Roles of secondary electrons and sputtered atoms in ion-beam-induced deposition