Bifunctional supported ionic liquid-based smart films for dyes adsorption and photodegradation.