In situ characterization and energy application of molybdenum disulfide