Preparation and characteristics of poly(amide–imide)/titania nanocomposite thin films