Equilibrium states of the pressure function for products of matrices