Local Oersted Field Generation at the Junction between Ferromagnetic Nanowire and Electrode