How do you prove that similar n x n matrices have the same rank?