Sobolev theorem for potentials on Carleson curves in variable Lebesgue spaces