Estimating the interstellar extinction and the contribution from an accretion shock to the formation of emission continuum in DS Tau and DG Tau