Improved resonance technique for materials characterization