Size effect on the bandgap of II–VI semiconductor nanocrystals