The role of base flipping in damage recognition and catalysis by T4 endonuclease V