The local structure of n-Poisson and n-Jacobi manifolds