Imaging Electrically-Active Defects In Gallium Arsenide And Cobalt Nanowire Devices