Dye-doped photorefractive liquid crystals for dynamic and storage holographic grating formation and spatial light modulation