Rotational mechanism of ammonium ion in water and methanol