Investigation of electronic structure of ternary molybdenum sulphides by means of x-ray emission and photoelectron spectroscopy