Development of nonlinear infrared spectroscopic methods to probe molecular dynamics in functional materials