The Stability, Electronic Structure, and Optical Property of TiO2 Polymorphs