Structural basis for catalytic activation of a serine recombinase