Self-Optimization of the Active Site of Molybdenum Disulfide by an Irreversible Phase Transition during Photocatalytic Hydrogen Evolution.