Analytical expression of the magneto-optical Kerr effect and Brillouin light scattering intensity arising from dynamic magnetization