Time-resolved measurements of charge carrier dynamics and optical nonlinearities in narrow-bandgap semiconductors