Stimuli-responsive polymeric films and coatings