Role of semicore electrons in the lattice dynamics of a cubic ZnS crystal