Final-state phases in charmed meson two-body nonleptonic decays