A Statistical Framework for Analysis of Trial-Level Temporal Dynamics in Fiber Photometry Experiments