NAS-X: Neural Adaptive Smoothing via Twisting