Photoswitching in polymer-dispersed liquid crystals