Master loop equations, free energy and correlations for the chain of matrices