How to calculate the Curie temperature and magnetic phase transition of Nickel