High-resolution magnetic-resonance spectroscopy of thermal donors in silicon