Studying Protein-Dna Interactions In Vitro And In Vivo Using Single-Molecule Photoswitching