Thermal and electrical properties of methylammonium lead iodide perovskite compact before and after phase transition