Non-destructive microstructural analysis by electrical conductivity: Comparison with hardness measurements in different materials