Trace formulae for the matrix Schrödinger equation with energy-dependent potential