How thermal treatment influences the phase transition of NiMoO4