Photovoltaic effect in multi-domain ferroelectric perovskite oxides