Imprint induced failure modes in ferroelectric non-volatile memories