Effect of Metal Doping on Electronic Structure and Visible Light Absorption of SrTiO3 and NaTaO3 (Metal = Mn, Fe, and Co)