Analysis of (particle, xn) reactions on tantalum and gold