Inelastic Neutron Scattering Study of the Specific Features of the Phase Transitions in (NH4)2WO2F4