tools to obtain phase diagrams of 2D Ising model by diagonalization of transfer matrix