The Electronic Structures and Optical Properties of Alkaline-Earth Metals Doped Anatase TiO2: A Comparative Study of Screened Hybrid Functional and Generalized Gradient Approximation