Nanoscale nuclear magnetic resonance with a 1.9-nm-deep nitrogen-vacancy sensor