Spatially resolved nmr spectroscopy using phase-modulated spin-echo trains