X-ray spectrum investigation of electron energy structure of semiconductor compounds CdIn2S4, CdGa2S4 and HgGa2S4