Thermally induced optical bistability in II–VI semiconductor crystals and thin films