Photochromism in nematic and in chiral nematic liquid crystals