Coherent electronic transport and Kondo resonance in magnetic nanostructures