Dielectronic recombination of $$\hbox {W}^{37+}$$ and electron-impact ionization of $$\hbox {W}^{36+}$$