Model-independent resonance parameter extraction from the trace of K and T matrices