Thick-target Ti and Fe K X-ray production cross sections from D, He, C, N and O bombardment