Formation of optical gain due to exciton localization in CdxZn1−xS-ZnS strained-layer quantum wells