Ferroelectric domain switching pathways—From grain boundary to grain body