Spectroscopic characterization of nonlinear optical and biophotonic materials