prove that similar matrices have the same eigenvalues