Chemical CdS Thin-Film Deposition Influenced by External Electric and Magnetic Fields