Derivation of the Scattering Model for Josephson Effects from the Ginzburg-Landau Equations