Determination of spectroscopic parameters for 313 M dwarf stars from their APOGEE Data Release 16 H-band spectra