Analytical solution for time-resolved photoacoustic calorimetry data and applications to two typical photoreactions