(Ba+Co) codoped CdS thin films with enhanced magnetic and photodegradation properties