Preparation of ferroelectric ceramics in a film structure and their photovoltaic properties