Systems of matrix equations