Optical control of mammalian endogenous transcription and epigenetic states