Diode-pumped 2 μm optical oscillator for high-resolution spectroscopy and frequency metrology