Magnetic Resonance in Micro- and Nanostructures