Dynamics of transcription factor targeting and chromatin states during reprogramming