High-resolution spectroscopic atlas of M subdwarfs. Effective temperature and metallicity