Conformational rearrangements regulating the DNA repair protein APE1