Role of Defects in Photocatalytic Water Splitting: Monodoped vs Codoped SrTiO$_3$