Characteristic and non-characteristic X-ray emission from SF6 and SO2 molecules by electron impact