The coefficients of the characteristic polynomial in terms of the eigenvalues and the elements of an n×n matrix