Microwave-free nuclear magnetic resonance at molecular scales