Final-state effect on x-ray photoelectron spectrum of nominally $d^1$ and $n$-doped $d^0$ transition metal oxides