Effect of Gd substitution on ferroelectric and magnetic properties of Bi4Ti3O12