Structural evolution of molybdenum sulfide catalysts