Effects of the final-state interaction in (γ, pn) and (γ, pp) processes