Microstructural measurement on ceramics and hardmetals.