Cubic-to-hexagonal phase transition and optical properties of chemically synthesized ZnS nanocrystals