Final-state interactions in the CP asymmetry of D meson two-body decays