Eight-logic memory cell based on multiferroic junctions