A new technique for measuring sputtering yields at high energies