Switching ferroelectric twin boundaries