Femtosecond X-ray generation via the Thomson scattering of a terawatt laser from electron bunches produced from the LWFA utilizing a plasma density transition