Microstructural imaging and characterization of oil shale before and after pyrolysis