Preparation and characterization of polymeric nanocomposite films for application as protective coatings