Investigation of hard x-ray emissions from terawatt laser-irradiated foils at the Matter in Extreme Conditions instrument of the Linac Coherent Light Source