A general convergence result for viscosity solutions of Hamilton-Jacobi equations and non-linear semigroups