Bilayer CdS Structure: A Promising Candidate for Photocatalytic and Optoelectronic Applications