Using ultrafast spectroscopy to understand carrier dynamics in metal halide perovskites for improved stability