Phase transformations of ammonium tungsten bronzes