The Jacobi morphism and the Hessian in higher order field theory; with applications to a Yang-Mills theory on a Minkowskian background