Text this: An Algebraic Relation between Consimilarity and Similarity of Quaternion Matrices and Applications