Multiferroic oxides-based flash memory and spin-field-effect transistor