On the approximation of K-diagonalizable hyperbolic systems by finite elements - Applications to the Euler equations and to gaseous mixtures