Elastic properties of polycrystalline cubic boron nitride and diamond by dynamic resonance measurements