Photoresponse of ferroelectric BaTiO₃ thin films