THz and X-ray emission as a tool for study of ionization dynamics in gas clusters