Modeling the band gap of CdS quantum well structures