Size quantization effects in optical and electrical properties of II–VI semiconductor films in nanocrystalline form