The effect of ion flux on plasma-induced modification and deuterium retention in tungsten and tungsten–tantalum alloys