Quark-antiquark potential in defect conformal field theory