Roth's similarity theorem and rank minimization in the presence of nonderogatory or semisimple eigenvalues