Structural and electronic properties featuring ambipolar transport in methylammonium lead iodide perovskite: A DFT analysis