Techniques for NMR imaging of solids