Magnetic field induced spin reorientation transition in NdFeO3 investigated with THz time-domain spectroscopy