Quality control for powder metallurgy