The role of defects on structural electrical and optical properties of II VI semiconductors and nanomaterials