Effect of secondary electrons and negative ions on sputtering of films