Extensions of n-Hom Lie algebras