Magnetic phase transitions in Nd2CuO4