The entropy of Lyapunov-optimizing measures of some matrix cocycles