Bulk versus surface state contributions to the efficiency of perovskite titanate photoanodes