High resolution nuclear magnetic resonance spectroscopy in liquids and gases at pressures up to 2500 bar