Studies of singly and multiply charged secondary ion emission and the effects of oxygen on ionization and sputter erosion