Ion cyclotron emission from fusion products and beam ions in the Tokamak Fusion Test Reactor