Tunable photovoltaic effect and solar cell performance of self-doped perovskite SrTiO3