Retention of intermediate polarization states in ferroelectric materials enabling memories for multi-bit data storage