In situ formation of a MoS2 -based inorganic-organic nanocomposite by directed thermal decomposition.