Formation of CdS thin films in a chemical bath environment under the action of an external magnetic field