Effects of synthesis conditions on the transition metal dichalcogenide TiSe2