Improving sensitivity and resolution in solid-state nuclear magnetic resonance