Syntheses and characterization of ammonium and tetraalkylammonium thiomolybdates and thiotungstates