Origin of field-induced discontinuous phase transitions in Nd2Fe17