Structural and electronic characterization on energy-related materials using TEM