Production mechanism of polytitanocarbosilane and its conversion of the polymer into inorganic materials