Lyapunov exponents for products of matrices and multifractal analysis. Part II: General matrices