Ferroelectric properties and the origin of the magnetism in the Bi6Fe2Ti3O18 thin films