The structure and ferroelectric properties of layered compounds in the system Bi4Ti3O12Bi2WO6