Probing Atomic-Scale Properties of Magnetic and Optoelectronic Nanostructures