Self confinement of light in planar cells containing nematic liquid crystals