Tristate ferroelectric memory effect attained by tailoring the ferroelectric behavior in Bi1/2(Na0.8K0.2)1/2TiO3 with Eu doping