Plasmoid motion across a tangential discontinuity (with application to the magnetopause)