Nonlocal theory of the optical Stark effect on the size-quantized excitons in a slab