Direct solar energy conversion and storage through coupling between photoelectrochemical and ferroelectric effects