All-optical regulation of gene expression in targeted cells