Nitrogen-vacancy centers in diamond for nanoscale magnetic resonance imaging applications