Flexible ferroelectric element based on van der Waals heteroepitaxy