Comparison between electric and magnetic rf drive in long Josephson junctions