Marked length spectrum of magnetized surfaces