Analytical differentiation of the energy contribution due to triple excitations in fourth-order Møller-Plesset perturbation theory