Exciton-related optical nonlinearities in semiconductors and semiconductor microcrystallites