Efficient computation of the likelihood expansions for diffusion models