High-gradient nanomagnets on cantilevers for sensitive detection of nuclear magnetic resonance.