Propagation of errors for matrix inversion